package com.xquant.pricing.pricingConfig.service;

import com.github.pagehelper.PageInfo;
import com.xquant.pricing.pricingConfig.entity.User;
import com.xquant.pricing.pricingConfig.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User findUserByUserId(String userId) {
        return userMapper.findUserByUserId(userId);
    }

    public PageInfo<User> findUserList(Map<String, Object> param) {
        List<User> lst = userMapper.findUserList(param);
        return new PageInfo<>(lst);
    }
    public List<User> findUnDisUsers(Map<String, Object> param) {
        List<User> lst = userMapper.findUnDisUsers(param);
        return lst;
    }


}
